package com.paomi.client.activity.person.presenter;

import com.hannesdorfmann.mosby3.mvp.MvpBasePresenter;
import com.hannesdorfmann.mosby3.mvp.MvpView;
import com.paomi.client.activity.person.View.SettingView;
import com.paomi.client.activity.person.model.loginOutEntity;
import com.paomi.client.bean.BaseJSON;
import com.paomi.client.net.Api;
import com.paomi.client.net.BaseCallback;
import com.paomi.client.net.Constants;

import retrofit2.Call;

public class SettingPre extends MvpBasePresenter<SettingView> {
    /**
     * 登出
     */
    public void loginOut() {
        Api.getInstanceService(Constants.Login_URL).loginExit().enqueue(new BaseCallback<loginOutEntity>() {
            @Override
            public void onResponse(Call<loginOutEntity> call, loginOutEntity result) {
                getView().showOut(result);
            }
        });
    }
}
